// import * as types from './mutation-types';

const mutations = {
    userLoginState(state) {
        state.login = true;
    },
    userLogout(state) {
        state.login = false;
    },
    settoken(state, token) {
        state.token = token;
    },
    setusername(state, username) {
        state.username = username;
    },
    setnickname(state, nickname) {
        state.nickname = nickname;
    },
    setage(state, age) {
        state.age = age;
    },
    setmobile(state, mobile) {
        state.mobile = mobile;
    },
    setsex(state, sex) {
        state.sex = sex;
    },
    setavatar(state, avatar) {
        state.avatar = avatar;
    },
    setgametags(state, gametags) {
        state.gametags = gametags;
    },
    setdowngames(state, games) {
        state.downgames = games;
    },
    setStatusBar(state, statusbar) {
        state.statusbar = statusbar;
    },
    setBack(state, back) {
        state.back = back;
    },
    setDone(state, done) {
        console.log('done改变了');
        console.log(done);
        state.done = done;
    },
    setGametasks(state, games) {
        console.log('改变状态啦~');
        console.log(games);
        state.gametasks = games;
    },
};
export default mutations;

